﻿using EventHandlerDemo.Domain.Orders;
using EventHandlerDemo.Infrastructure.EFCore;

namespace EventHandlerDemo.Infrastructure.Repositories.Orders
{
    public class OrderRepository : RepositoryBase, IOrderRepository
    {
        public OrderRepository(AppDbContext dbContext) : base(dbContext)
        {

        }

        public async Task InsertAsync(Order order)
        {
            await _dbContext.AddAsync(order);
        }
    }
}
